<div id="footer_con">
	<div id="footer_in">
		<ul class="footer_ul_f">
			<li class="footer_li_f left">
				<h3> 好康活動 </h3>	
				<ul class="footer_ul_s">
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
				</ul>
			</li>
			<li class="footer_li_f left">
				<h3> 玩遊戲 </h3>	
				<ul class="footer_ul_s">
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
				</ul>				
			</li>
			<li class="footer_li_f left">
				<h3> 抽大獎 </h3>	
				<ul class="footer_ul_s">
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
				</ul>	
			</li>
			<li class="footer_li_f left">
				<h3> 限量團購 </h3>	
				<ul class="footer_ul_s">
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
				</ul>					
			</li>
			<li class="footer_li_f left">
				<h3> TOP 100粉絲團人氣排行榜 </h3>	
				<ul class="footer_ul_s">
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
					<li><a href="#">人氣活動</a></li>
				</ul>				
			</li>
		</ul>	
	</div>
</div>

<div id="footer_con_b">
	<div class="copyright">
		美商全通集團　版權所有 © 2011 ALL ACCESS Holding Group. All Rights Reserved
	</div>
</div>

<div id="fb-root"></div>
<script>
 window.aams = {};
 aams.fbPerms = 'email,user_birthday,offline_access,user_photos,publish_stream,manage_pages,publish_checkins,read_friendlists';	
 window.fbAsyncInit = function() {
    FB.init({
      appId  : '264747893576138',
      status : true, // check login status
      cookie : true, // enable cookies to allow the server to access the session
      xfbml  : true, // parse XFBML
      oauth: true
    });
    
		/* All the events registered */
		FB.Event.subscribe('auth.login', function(response) {
		    // do something with response
		    window.location.reload();
		});
		FB.Event.subscribe('auth.logout', function(response) {
		    // do something with response
		    window.location.reload();
		});
		FB.Event.subscribe('edge.create', function(response) {
				$.post("api-fans-log.html", {"url" : response});
		});
		FB.getLoginStatus(function(response) {
		    if (response.session) {
		    	
		    }
		});
  };
	function facebookSignUp() {
	  FB.login(function(response) {
	    if (response.authResponse && response.scope) {
	      window.location = "signup.html?ref=facebook"
	    } else {
				
	    }
	  }, {scope: aams.fbPerms});
	}       
	       
	function facebookLogin() {
	  FB.getLoginStatus(function(response) {
	    if (response.authResponse) {
	      $('#fb_login_form').submit();
	    } else {
	     FB.login(function(response) {
	        if (response.authResponse) {
	          $('#fb_login_form').submit();
	        } else { }
	      }, {scope: aams.fbPerms});
	    }
	  });
	}  
  (function() {
    var e = document.createElement('script');
    e.async = true;
    e.src = document.location.protocol +
            '//connect.facebook.net/zh_TW/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());

</script>


<form method="post" action="login.html" id="fb_login_form">
	<input type="hidden" name="type" value="FB">
</form>
</body>
</html>